//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
        // 创建电脑
        Computer pc1 = new Computer("Intel Core i9-14900KS", 8, 512);
        Computer pc2 = new Computer("AMD Ryzen 9 9900X", 16, 1024);
        Computer pc3 = new Computer("Intel Core i9-13900K", 8, 256);

        // 创建学生并分配电脑
        Student student1 = new Student("孙行者", pc1);
        Student student2 = new Student("者行孙", pc2);
        Student student3 = new Student("行者孙", pc3);

        // 打印学生信息及电脑配置
        student1.printInfo();
        student2.printInfo();
        student3.printInfo();
    }
}